<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="CategoryInfo">
    <div class="layui-card-body padding-left-10 layui-col-space20"  >

        {if !empty($vo.id) }
        <div class="layui-col-md12">
            <label class="layui-form-label label-required-next">{:Lang("上级分类")}:</label>
            <div class="layui-input-block">
                <select class="layui-select" name="pid" lay-verify="required" required>
                    <option value=''>-- {:lang('全部')} --</option>
                    {foreach $top_arr as $k=>$v}
                    {if $k eq $vo.id }
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>

            </div>
        </div>
        {/if}
        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("名称")}:</label>
            <div class="layui-input-block">

                <input name="name" value='' required class="layui-input ">
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("排序")}:</label>
            <div class="layui-input-block">

                <input name="sort" value='{$vo.sort|default=""}' class="layui-input">
            </div>
        </div>
    </div>


    <div class="hr-line-dashed"></div>


    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>

<script>


</script>